<?php $this->load->view('global_header'); ?>
<link rel="stylesheet" type="text/css" href="/assets/css/adviser.css"/>

<div>
    <a href="/admin.php?c=adviser&m=create">添加顾问单位</a>
</div>
<div class="advisers">
    <?php foreach ($advisers as $l): ?>
        <div class="adviser entry">
            <?php if($photo = $this->photo->find($l->logo)): ?>
            <img src="/assets/uploads/<?php echo $photo->file_name; ?>" alt="<?php echo $photo->label; ?>"/>
            <?php endif; ?>
            <h5><?php echo $l->name; ?></h5>
            <a href="<?php echo $l->url; ?>"><?php echo $l->url; ?></a>
            <p><?php echo $l->content; ?></p>
            <div class="footer">
                <div class="actions">

                    <a href="/admin.php?c=adviser&m=edit&id=<?php echo $l->id; ?>">修改</a>
                        <a href="/admin.php?c=adviser&m=delete&id=<?php echo $l->id; ?>"> 删除</a>
            </div>
        </div>
    </div>
    <?php endforeach; ?>
                <div class="clear"></div>
            </div>
            <div class="page_links">
    <?php echo $page_links; ?>
            </div>
<?php $this->load->view('global_footer'); ?>